Skip to content

UnixUserAccount, Artifact and Object changes - #308

Merged
gtback merged 18 commits into
CybOXProject:masterfrom
emmanvg:unix-account-and-artifact
Nov 28, 2017
Merged

gtback merged 18 commits into
CybOXProject:masterfrom
emmanvg:unix-account-and-artifact

Conversation

@emmanvg

@emmanvg emmanvg commented Nov 24, 2017

Copy link
Copy Markdown
Contributor

Although, this PR builds on top of #307. Therefore, I will close that PR and use this instead. The full list of changes can be tracked in that PR. Plus,

While creating the UnixUserAccount I noticed xsi:type did not contain the correct value, thus tweaking the bindings a bit.

Added Object documentation on using cybox clear cache instead of removing the caching feature.

@emmanvg emmanvg added this to the v2.1.0.15 milestone Nov 24, 2017
@emmanvg

emmanvg commented Nov 24, 2017

Copy link
Copy Markdown
Contributor Author

This PR closes #303

@gtback gtback left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple minor questions, but overall this looks really good!

Comment thread cybox/objects/artifact_object.py Outdated
MIDDLE_ENDIAN = "Middle-endian"
ENDIANNESS = (BIG_ENDIAN, LITTLE_ENDIAN, MIDDLE_ENDIAN)

byte_order = fields.TypedField("byte_order", postset_hook=validate_byte_order_endianness)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validate_byte_order_endianness can probably be a pre-set hook, since it doesn't depend on any of the other values of the instance.

Comment thread cybox/objects/pdf_file_object.py Outdated
def validate_id_string(instance, value):
if value is None:
return
elif len(instance) > 2:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure instance will be an instance of PDFFileID, which would be fine if this was an EntityList, but we might want to use len(instance.id_string) instead. Also, I'm thinking this should be >=2, since we don't want to add another one if there are already 2.

@gtback gtback left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@gtback
gtback merged commit e6099fc into CybOXProject:master Nov 28, 2017
@emmanvg
emmanvg deleted the unix-account-and-artifact branch June 11, 2018 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants